cmake_minimum_required(VERSION 4.0)
project(errordemo)

set(CMAKE_CXX_STANDARD 20)

# Folly
find_package(folly CONFIG REQUIRED)

# 可执行文件
add_executable(errordemo
        main.cpp
        error_control.cpp
        error_control.h
        ThreadSafeQueue.h
        BigBlockPool.h
)
# 链接库
target_link_libraries(errordemo PRIVATE
        Folly::folly
)
